home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20030409-20031118 / 000355_fdc@columbia.edu_Wed Oct 29 17:38:58 2003.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: TEST NETWORK CONNECTION
  5. Date: 29 Oct 2003 22:22:52 GMT
  6. Organization: Columbia University
  7. Lines: 23
  8. Message-ID: <slrnbq0fds.a05.fdc@sesame.cc.columbia.edu>
  9. References: <4c64004.0310290631.3b5f136c@posting.google.com> <slrnbpvvgh.751.fdc@sesame.cc.columbia.edu>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1067466172 2252 128.59.59.56 (29 Oct 2003 22:22:52 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 29 Oct 2003 22:22:52 GMT
  15. User-Agent: slrn/0.9.7.4 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14609
  17.  
  18. In article <slrnbpvvgh.751.fdc@sesame.cc.columbia.edu>, Frank da Cruz wrote:
  19. : In article <4c64004.0310290631.3b5f136c@posting.google.com>, Carl wrote:
  20. :: I am trying to write a script which looks to see if a netwok
  21. :: connection is available and if it is sent files over the network.  If
  22. :: the network is not available I want to initiate a script that will
  23. :: send the files over a land line phone.
  24. ::  
  25. : echo "Trying net..."
  26. : set host xxx
  27. : if fail {
  28. :     echo "Net connection failed - trying phone..."
  29. :     set modem type yyy
  30. :
  31. Sorry, I left out a vital command here:
  32.  
  33.       set line /dev/ttyS0 ; (or whatever) to open the serial port
  34.  
  35. :     set speed 57600     ; or whatever
  36. :     dial 7654321
  37. :     if fail exit 1 "Phone connection failed too"
  38. : }
  39.  
  40. - Frank
  41.